//
//  JSHomeTableViewController.swift
//  JS weibo
//
//  Created by Jackie on 16/5/19.
//  Copyright © 2016年 Jackie. All rights reserved.
//

import UIKit

class JSHomeTableViewController: JSBaseTableViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        visitorLoginView.updateUI("关注一些人，回到这里看看有什么惊喜", imageName: "visitordiscover_feed_image_smallicon", isHome: true)
        setNavBar()
    }
    
    private func setNavBar() {
        
        let popItem = UIBarButtonItem(imageName: "navigationbar_pop", target: self, action: #selector(JSHomeTableViewController.push))
        navigationItem.rightBarButtonItem = popItem
        
    }
    
    @objc private func push() {
        let detail = JSDetailViewController()
        detail.hidesBottomBarWhenPushed = true
        navigationController?.pushViewController(detail, animated: true)
    }
    
    override func didReceiveMemoryWarning() {
        let detail = JSDetailViewController()
        super.didReceiveMemoryWarning()
        navigationController?.pushViewController(detail, animated: true)
    }
}
